#include <iostream>
#include <vector>
using namespace std;
int main() {
    int n;
    cin >> n;
    vector<int> a;
    for(int i = 0; i < n; i++) {
        int t;
        cin >> t;
        a.push_back(t);
    }
    a.pop_back();
    for(auto& s : a) {
        cout << s << " ";
    }
    return 0;
}